package org.edu.modules.pyfa.api;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.edu.common.api.vo.Result;
import org.edu.common.aspect.annotation.AutoLog;
import org.edu.common.system.query.QueryGenerator;
import org.edu.modules.pyfa.entity.JwKecheng;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

@Component
@FeignClient(value = "edu-jxzy")
public interface IVeJwJxzyFeignClientService {


    @AutoLog(value = "FeignClient-教务课程信息-通过id获取课程名称")
    @GetMapping(value = "/jxzy/jwKecheng/getNameById")
    String getKcNameById(@RequestParam(name = "id", required = true) int id);

    @AutoLog(value = "FeignClient-教务课程信息-通过课程名称获取id")
    @GetMapping(value = "/jxzy/jwKecheng/getIdByName")
    Integer getIdByName(@RequestParam(name="name",required=true) String name);

    @AutoLog(value = "FeignClient-教务课程信息-通过id获取课程总分")
    @GetMapping(value = "/jxzy/jwKecheng/getKsfsById")
    int getKcKsfsById(@RequestParam(name = "id", required = true) int id);

    @AutoLog(value = "FeignClient-教务教室信息-通过id获取教室信息")
    @GetMapping(value = "/jxzy/jwJiaoshi/getById")
    Result<JSONObject> getJsById(@RequestParam(name = "id", required = true) int id);

    @AutoLog(value = "FeignClient-获取课程信息")
    @GetMapping(value = "/jxzy/jwKecheng/allList")
    List<JwKecheng> allList(@RequestParam(name = "falid", required = true)  Integer falid,@RequestParam(name = "specid", required = true) Integer specid);
}
